package dhy.lyb.change.model;

import org.springframework.stereotype.Component;

/**
 * @className: Food
 * @description:
 * @author: Rurutiaza.theKing
 * @create: 2017-04-15-10:09
 **/
@Component("food")
public class Food {
    private int id;
    private String foodname;
    private String content;
    private String material;
    private String img;

    public Food() {
    }

    public Food(int id, String foodname, String content, String img, String material) {
        this.id = id;
        this.foodname = foodname;
        this.content = content;
        this.img = img;
        this.material = material;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", foodname='" + foodname + '\'' +
                ", content='" + content + '\'' +
                ", material='" + material + '\'' +
                ", img='" + img + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFoodname() {
        return foodname;
    }

    public void setFoodname(String foodname) {
        this.foodname = foodname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }
}
